package com.woniuxy.entity;

import ch.qos.logback.core.joran.spi.NoAutoStart;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @author:deng
 * @time:2022/4/26 20:21
 * @描述：
 */

public class Question {
    private int id;
    private String title;
    private String answer;
    private String analysis;
    private int complexity;
    private int titlecategoryId;
    private int quTypeId;
    private int isDelete;
    private int fid;//主要是用于查询时，只根据父级分类的id查询，没有具体的分类id
    private List<Integer> quesstionIds;
    private List<ChoiceAnswer> choiceAnswerLists;

    public Question() {
    }

    public List<Integer> getQuesstionIds() {
        return quesstionIds;
    }

    public void setQuesstionIds(List<Integer> quesstionIds) {
        this.quesstionIds = quesstionIds;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", answer='" + answer + '\'' +
                ", analysis='" + analysis + '\'' +
                ", complexity=" + complexity +
                ", titlecategoryId=" + titlecategoryId +
                ", quTypeId=" + quTypeId +
                ", isDelete=" + isDelete +
                ", fid=" + fid +
                ", quesstionIds=" + quesstionIds +
                ", choiceAnswerLists=" + choiceAnswerLists +
                '}';
    }

    public Question(int id, String title, String answer, String analysis, int complexity, int titlecategoryId, int quTypeId, int isDelete, int fid, List<Integer> quesstionIds, List<ChoiceAnswer> choiceAnswerLists) {
        this.id = id;
        this.title = title;
        this.answer = answer;
        this.analysis = analysis;
        this.complexity = complexity;
        this.titlecategoryId = titlecategoryId;
        this.quTypeId = quTypeId;
        this.isDelete = isDelete;
        this.fid = fid;
        this.quesstionIds = quesstionIds;
        this.choiceAnswerLists = choiceAnswerLists;
    }

    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getAnalysis() {
        return analysis;
    }

    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }

    public int getComplexity() {
        return complexity;
    }

    public void setComplexity(int complexity) {
        this.complexity = complexity;
    }

    public int getTitlecategoryId() {
        return titlecategoryId;
    }

    public void setTitlecategoryId(int titlecategoryId) {
        this.titlecategoryId = titlecategoryId;
    }

    public int getQuTypeId() {
        return quTypeId;
    }

    public void setQuTypeId(int quTypeId) {
        this.quTypeId = quTypeId;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public List<ChoiceAnswer> getChoiceAnswerLists() {
        return choiceAnswerLists;
    }

    public void setChoiceAnswerLists(List<ChoiceAnswer> choiceAnswerLists) {
        this.choiceAnswerLists = choiceAnswerLists;
    }
}
